package first.endtoend
/**
 * Created with IntelliJ IDEA.
 * User: Olfa
 */

class FairPricesShop
{

    String fpsName;
    Date dateCreated
    Date lastUpdated
    Locality locality

    static hasMany = [agents: Agent]
    static constraints = {
        fpsName nullable: false
        //address(nullable: true)
        locality(nullable: false)
        dateCreated nullable: true
        lastUpdated nullable: true
        agents nullable: true
    }
}
